<template>
  <div class="add-user">
    <el-form
      :model="form"
      label-width="auto"
      style="max-width: 500px; margin: 135px auto; overflow: hidden"
    >
      <el-form-item label="用户名" prop="name">
        <el-input v-model="form.name" placeholder="请输入用户名" />
      </el-form-item>
      <el-form-item label="密码" prop="password">
        <el-input v-model="form.password" placeholder="请输入密码" />
      </el-form-item>
      <el-form-item label="确认密码" prop="confirmPsw">
        <el-input v-model="form.confirmPsw" placeholder="请再次输入密码" />
      </el-form-item>
      <div class="btn">
        <el-button
          type="primary"
          @click="submitForm"
          style="width: 140px; height: 50px; font-size: 18px"
        >
          保存
        </el-button>
      </div>
    </el-form>
  </div>
</template>

<script setup>
const form = reactive({
  name: "",
  password: "",
  confirmPsw: "",
});
const submitForm = () => {};
</script>
<style scoped lang="scss">
.add-user {
  height: 100%;
  width: 100%;
  ::v-deep .el-form-item__label {
    color: #fff;
    font-size: 16px;
  }
  ::v-deep .el-input__wrapper {
    background: #ffffff30;
    height: 40px;
    border: 1px solid #dcdcdc40;

    .el-input__inner {
      color: #fff;
    }
  }
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 200px;
  }
}
</style>
